package com.sau.pixelcart.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 库存操作审计表
 * </p>
 *
 * @author Inton
 * @since 2025-03-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("inventory_adjustment")
@ApiModel(value="InventoryAdjustment对象", description="库存操作审计表")
public class InventoryAdjustment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "调整记录ID")
    @TableId(value = "adjustment_id", type = IdType.ASSIGN_UUID)
    private String adjustmentId;

    @ApiModelProperty(value = "商品ID")
    private String productId;

    @ApiModelProperty(value = "调整前库存")
    private Integer oldStock;

    @ApiModelProperty(value = "调整后库存")
    private Integer newStock;

    @ApiModelProperty(value = "调整原因（如：盘亏/补货）")
    private String reason;

    @ApiModelProperty(value = "操作员ID（关联user表）")
    private String operatorId;

    @ApiModelProperty(value = "操作时间")
    private LocalDateTime adjustmentTime;


}
